<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Security-Policy" content="default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: gap: content:">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui, viewport-fit=cover">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="default">
    <meta name="theme-color" content="#2196f3">
    <meta name="format-detection" content="telephone=no">
    <meta name="msapplication-tap-highlight" content="no">
    <title>view tab</title>
    <!-- <link rel="stylesheet" href="./framework7/css/framework7.min.css"> -->
    <link rel="stylesheet" href="./framework7/css/framework7.ios.min.css">
    <link rel="stylesheet" href="./css/icons.css">
    <link rel="stylesheet" href="./css/app.css">
</head>

<body>
    <!-- App root -->
    <div id="app">
        <!-- Views/Tabs container -->
        <div class="views tabs">
            <!--
        Tabbar for switching views-tabs. Should be a first child in Views.
        Additional "toolbar-bottom-md" class is also required here for MD theme
      -->
            <div class="toolbar tabbar-labels toolbar-bottom-md">
                <div class="toolbar-inner">
                    <a href="#view-home" class="tab-link tab-link-active">
                        <i class="icon f7-icons ios-only">home</i>
                        <span class="tabbar-label">Home</span>
                    </a>
                    <a href="#view-catalog" class="tab-link">
                        <i class="icon f7-icons ios-only">list</i>
                        <span class="tabbar-label">Catalog</span>
                    </a>
                    <a href="#view-settings" class="tab-link">
                        <i class="icon f7-icons ios-only">settings</i>
                        <span class="tabbar-label">Settings</span>
                    </a>
                </div>
            </div>
            <!-- Your main view/tab, should have "view-main" class. It also has "tab-active" class -->
            <div id="view-home" class="view view-main tab tab-active">
                <div class="page" data-name="catalog">
                    <div class="navbar">
                        <div class="navbar-inner sliding">
                            <div class="title">内联 有 tab 多页面与单页面例子</div>
                        </div>
                    </div>
                    <div class="page-content">
                        <div>
                            <a href="#view-catalog" class="tab-link">
                                <i class="icon f7-icons ios-only">list</i>
                                <span class="tabbar-label">Catalog</span>
                            </a>
                        </div>
                        <h3>多页面 view, 多 tab -- view tab，多 tab 的页面，其实就是多个 view，单独分成多个 html 文件，通过路由的方式切换。 页面的状态可缓存</h3>
                        <h3>通过 路由 切换的，开启 pushState ，tab 不会切换</h3>
                    </div>
                </div>
            </div>

            <!-- Catalog View -->
            <div id="view-catalog" class="view tab">
                view-catalog
            </div>

            <!-- Settings View -->
            <div id="view-settings" class="view tab">
                view-settings
            </div>
        </div>
    </div>

    <script src="framework7/js/framework7.min.js"></script>
    <script src="js/routes6.js"></script>
    <script src="js/app6.js"></script>
</body>

</html>